package com.zy.activity.bean

class BaseMenuBean {
    var type = COMMON  //内部展示样式
    val des: String
    var targetClass: Class<*>? = null
        private set
    var code = 0
        private set

    var widgetType = 0

    constructor(des: String, code: Int) {
        this.des = des
        this.code = code
    }

    constructor(des: String, code: Int, widgetType: Int) {
        this.des = des
        this.code = code
        this.widgetType = widgetType
    }

    constructor(des: String) {
        this.des = des
        type = HEAD
    }

    constructor(des: String, targetClass: Class<*>?) {
        this.des = des
        this.targetClass = targetClass
    }

    constructor(des: String, targetClass: Class<*>?, code: Int) {
        this.des = des
        this.targetClass = targetClass
        this.code = code
    }

    companion object {
        var COMMON = 0
        var HEAD = 1
    }
}